home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmiSoft
/
Misc
/
emu
/
vic-emu-tools.lha
/
vic-emu-tools
/
HowToUseVic-emu.txt
next >
Wrap
Text File
|
2004-05-25
|
6KB
|
195 lines
Vic20 emulation on Amiga
---
The only choice (for 680x0 amigas) seems to be the emulator vic-emu:
(Vic Emulator V0.65)
ftp://de.aminet.net/pub/aminet/misc/emu/vicV0.65.lha
For PowerPC there also seems to be MESS:
http://www.mess.org/
But as I have no PowerPC, this text will be about vic-emu V0.65.
---
Vic-emu is far from perfect, and has many bugs. This text is about
how to work around them and get an almost acceptable vic emulator.
I am running it on a 40Mhz 68040 (Blizzard1240).
First, the settings. I set both KEY and SCREEN to 0 in the info file.
If running from shell, the equivavent is:
vic-20 -k 0 -s 0
For some games, for example Omega Race, this is enough. Smooth and
nice emulation. But for most other games and for basic, the emulation
is running way too fast. Because of this, I made a little program
slowing down the processor - The included "SlowDown".
With a setting of 5000 (and type A) in my "slow down" program, most
basic and many games runs smoothly.
The default vic-emu screen mode is a bad one. I use MCP to promote the
screen into a DblNTSC lores noflicker. That makes the aspect ratio more
vic-like.
---
That was about the settings, now about loading programs into vic-emu.
When you use the LOAD command in the vic emu, a file requester pops up
on the Workbench to selet file. BUT, you can't load a file from a root
directory. If you for example try to load RAM:program.prg, then you
will get a verify error. So you must have the vic program in a sub
directory. For example RAM:files/program.prg ....That works. Directly
after loading, press Return one extra time, or the keys will be locked
in some bug mode. Also, sometimes when going to the vic screen, you
need to press SHIFT to get out of some shift-lock mode. In other
words,
LOAD
(Select file)
(OK READY)
Press Return
RUN
It seems like it always loads into the basic memory (just ,8) and
never into the program's original position (,8,1) even if you specify
,8,1 (That's quite disturbing). So if you want to load a machine
language routine, you have to first move the basic memory position
to where the program should be located and then use LOAD. You do
this by Pokeing to position 43 and 44. Here is an example for loading
my program "Tribbles:" (http://home.tiscali.se/~boray/datormuseum/tribbles.html)
vic-20 -k 0 -s 0 $2000 ram8
(Loading the machine language and graphics part)
POKE43,0:POKE44,20
LOAD
(select "trill.gfx")
(when loaded, press return)
(Loading the basic part)
POKE7168,0:POKE43,1:POKE44,28:NEW
LOAD
(select "tribbles part 2")
(when loaded press return)
RUN
But how do I know what values to poke...? Well, That's easy. You just
use the program "PRGinfo" included in this package and it will tell
you what to do. If I for example use it on the file "trill.gfx" above,
this will be the output:
CBM PRG File Info V1.0 - By Anders Persson 2004 (listen.to/boray)
File: TRILL-GFX
Address: 5120 to 7167 = 2047 bytes
Hex: $1400 to $1BFF
My guess:
Machine language or data for Vic20 graphics memory (standard 5K) or C64/128.
LOAD "TRILL-GFX",8,1
SYS 5120 (maybe)
Vic-Emu before LOAD:
POKE 43, 0 :POKE 44, 20
But for some reason, pokeing before loading doesn't work with plugin
images for block 5 even if you have set vic-emu to have RAM there...
Then vic-emu will crash. But luckily, there is another way of loading those...
When loading plugin games, you must start from shell, and do like
this:
CD Work:Emulation/vic/
vic-20 -k 0 -s 0 $9ffe "Omega Race.prg"
(Mounts the file "Omega Race.prg" at adress $9ffe.) The normal address
would be $a000, but (unlike Vice) vic-emu doesn't recognize the CBM
file format when doing this, so you have to load it into pos $9ffe to
get rid of the two first bytes of the file. AND the file MUST be
located in the same directory as the emulator, or it will hang.
PRGinfo again gives you the needed info:
CBM PRG File Info V1.0 - By Anders Persson 2004 (listen.to/boray)
File: OMEGA RACE.PRG
Address: 40960 to 49152 = 8192 bytes
Hex: $A000 to $C000
My guess:
Vic20 8K plugin for block 5.
LOAD "OMEGA RACE.PRG",8,1
SYS 64802 (probably)
Vic-Emu command line $-load address: $9FFE
Vic-Emu before LOAD:
POKE 43, 0 :POKE 44, 160
NOTE: Crashes on vic-emu 0.65! Use the command line $-load address instead.
Luckily for you I have also made a little script that does all that for you.
(The included "vicstart"). Put it in S: and protect it +S. Put PRGInfo in C:
and assign VIC: to the dir that contains vic-emu. Then you can just do this
to run a plugin game:
vicstart "omega race.prg"
or for a two part cartridge:
vicstart "apple panic-6000.prg" "apple panic-a000.prg"
Nice? I think so! ;-)
---
When saving programs on vic-emu, you just do like usual:
SAVE "PROGRAM",8
...and it will be saved in vic-emu's dirctory.
---
There are two more programs included in this package:
* MakeLoCase - Program to renames files to only lo case letters.
* MakeUCase - Program to rename files to only upper case
letters and removes the .prg extension if any.
These are useful when transfering files from and to your
1541 drive (with for example "Easy1541"), for example when
copying files you have downloaded from internet to a real vic.
---
My Vic-20 software:
http://home.worldonline.se/~boray/datormuseum/vic20software.html
or
http://home.tiscali.se/~boray/datormuseum/vic20software.html
My Amiga Software:
http://user.tninet.se/~hlw771b/amigastuff.html
---
Well, Good luck!
/Anders